﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace The_Last_Knights.Event
{
    public class EventPacked
    {
        List<string>[] _preCond;
        List<string>[] _posCond;
        string _eventID;
        string _executionFile;
        string _controlID;

        public string ClassName
        {
            get { return _className; }
        }

        string _className;

        public string ControlId
        {
            get { return _controlID; }
        }

        public List<string>[] PreCond
        {
            get { return _preCond; }
        }

        public List<string>[] PosCond
        {
            get { return _posCond; }
        }

        public string EventId
        {
            get { return _eventID; }
        }

        public string ExecutionFile
        {
            get { return _executionFile; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="preCond"></param>
        /// <param name="posCond"></param>
        /// <param name="eventId">ID cua event dang ki lang nghe</param>
        /// <param name="executionFile"></param>
        /// <param name="controlId"></param>
        /// <param name="className"></param>
        /// <param name="eventListener">ID cua event muon lang nghe</param>
        public EventPacked(List<string>[] preCond, List<string>[] posCond, string eventId, string executionFile, string controlId, string className)
        {
            _preCond = preCond;
            _posCond = posCond;
            _eventID = eventId;
            _executionFile = executionFile;
            _controlID = controlId;
            _className = className;            
        }
    }
}
